package com.smartbone.pagination;

import com.smartbone.compenent.base.BasePage;
import com.smartbone.constant.Constant;


/**
 * TODO 带分页功能的基类
 * 
 * @author <a href="mailto:tianlu@jsecode.com">TianLu</a>
 * @version $Rev$ <br>
 *          $Id$
 */
public abstract class PageListBaseBean extends BasePage{
    /**
     * 当前页码，跟dataSroller的page属性绑定
     */
    protected int scrollerPage = Constant.STARTROW;
    
    /**
     * 当前页面大小
     */
    protected int pageSize = Constant.PAGESIZE;
    
    /**
     * 默认数据模型，如果你有多个数据集需要分页，请自定义PagedListDataModel和相应的getDataModel方法
     */
    protected PagedListDataModel defaultDataModel;
    
    public int getScrollerPage()
    {
        return scrollerPage;
    }

    public void setScrollerPage(int scrollerPage)
    {
        this.scrollerPage = scrollerPage;
    }
    
    public int getPageSize()
    {
        return pageSize;
    }

    public void setPageSize(int pageSize)
    {
        this.pageSize = pageSize;
    }
    
    public abstract PagedListDataModel getDefaultDataModel();


}
